package com.ynet.middleground.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 云平台省市区记录
 * </p>
 *
 * @author Songyf
 * @since 2021-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ur_cloud_platform_region")
public class CloudPlatformRegion extends Model<CloudPlatformRegion> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "primary_id", type = IdType.AUTO)
    private Integer primaryId;

    /**
     * 云平台id
     */
    private String id;

    /**
     * 云平台省份编码
     */
    private String provinceCode;

    /**
     * 云平台市编码
     */
    private String cityCode;

    /**
     * 云平台区编码
     */
    private String areaCode;

    /**
     * 云平台编码
     */
    private String code;

    /**
     * 云平台名称
     */
    private String name;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 创建人
     */
    private Integer createBy;


    @Override
    protected Serializable pkVal() {
        return this.primaryId;
    }

}
